package com.zhixue.study.feignclient;


import com.zhixue.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "media-api", fallbackFactory = MediaServiceClientFallbackFactory.class, path = "/media")
public interface MediaServiceClient {

    @GetMapping("/open/preview/{mediaId}")
    public RestResponse<String> getPlayUrlByMediaId(@PathVariable("mediaId") String mediaId);

}
